import request from '@/utils/request'

// 获取爱心助农活动列表
export function getLoveFarmerList(data) {
  return request({
    url: '/adminapi/LoveFarmer/getLoveFarmerList',
    method: 'post',
    data
  })
}
// 添加修改爱心助农活动列表
export function SaveLoveFarmer(data) {
  return request({
    url: '/adminapi/LoveFarmer/SaveLoveFarmer',
    method: 'post',
    data
  })
}
// 获取爱心助农活动商品列表
export function getLoveFarmerGoodsList(data) {
  return request({
    url: '/adminapi/LoveFarmer/getLoveFarmerGoodsList',
    method: 'post',
    data
  })
}
// 删除爱心助农活动
export function deleteLoveFarmerGoods(data) {
  return request({
    url: '/adminapi/LoveFarmer/delete',
    method: 'post',
    data
  })
}
// 爱心助农活动开启关闭
export function editStatusFarmerGoods(data) {
  return request({
    url: '/adminapi/LoveFarmer/editStatus',
    method: 'post',
    data
  })
}
// 获取爱心助农活动详情
export function detailFarmerGoods(data) {
  return request({
    url: '/adminapi/LoveFarmer/detail',
    method: 'post',
    data
  })
}
// 获取消费三天劝返活动列表
export function getRestitutionList(data) {
  return request({
    url: '/adminapi/activity/restitution/list',
    method: 'post',
    data
  })
}
// 添加消费三天劝返活动列表
export function addRestitution(data) {
  return request({
    url: '/adminapi/activity/restitution/add',
    method: 'post',
    data
  })
}
// 修改消费三天劝返活动列表
export function editRestitution(data) {
  return request({
    url: '/adminapi/activity/restitution/edit',
    method: 'post',
    data
  })
}
// 获取消费三天劝返活动详情
export function detailRestitution(data) {
  return request({
    url: '/adminapi/activity/restitution/detail',
    method: 'post',
    data
  })
}
// 删除消费三天劝返活动
export function delRestitution(data) {
  return request({
    url: '/adminapi/activity/restitution/del',
    method: 'post',
    data
  })
}
// 清除活动状态
export function editStatusRestitution(data) {
  return request({
    url: '/adminapi/bonus/v2/activity/status',
    method: 'post',
    data
  })
}

// 添加积分转提货券活动
export function addConversion(data) {
  return request({
    url: '/adminapi/activity/conversion/add',
    method: 'post',
    data
  })
}
// 编辑积分转提货券活动
export function editConversion(data) {
  return request({
    url: '/adminapi/activity/conversion/edit',
    method: 'post',
    data
  })
}
// 获取积分转提货券活动列表
export function getConversionList(data) {
  return request({
    url: '/adminapi/activity/conversion/list',
    method: 'post',
    data
  })
}
// 删除积分转提货券活动
export function delConversion(data) {
  return request({
    url: '/adminapi/activity/conversion/del',
    method: 'post',
    data
  })
}
// 获取积分转提货券详情
export function getConversionDetail(data) {
  return request({
    url: '/adminapi/activity/conversion/detail',
    method: 'post',
    data
  })
}
// 清除积分转提货券缓存
export function getConversionSync(data) {
  return request({
    url: '/adminapi/activity/conversion/sync',
    method: 'post',
    data
  })
}

// 获取送积分活动的列表
export function getBonusList(data) {
  return request({
    url: '/adminapi/bonus/v2/activity/index',
    method: 'post',
    data
  })
}
// 添加送积分活动
export function addBonus(data) {
  return request({
    url: '/adminapi/activity/bonus/add',
    method: 'post',
    data
  })
}
// 修改送积分活动
export function editBonus(data) {
  return request({
    url: '/adminapi/activity/bonus/edit',
    method: 'post',
    data
  })
}
// 获取送积分活动详情
export function getBonusDetail(data) {
  return request({
    url: '/adminapi/bonus/v2/activity/detail',
    method: 'post',
    data
  })
}
// 删除送积分活动
export function delBonus(data) {
  return request({
    url: '/adminapi/bonus/v2/activity/delete',
    method: 'post',
    data
  })
}
// 清除送积分活动的缓存
export function getBonussync(data) {
  return request({
    url: '/adminapi/activity/bonus/sync',
    method: 'post',
    data
  })
}
// 获取活动可选商品分类列表
export function getCateList(data) {
  return request({
    url: '/adminapi/activity/getCateList',
    method: 'post',
    data
  })
}
// 获取活动可选商品分类列表
export function getMerchantGoodsList(data) {
  return request({
    url: '/adminapi/goods/getAllList',
    method: 'post',
    data
  })
}